import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";

import homeRoute from "../pages/home/route";
import gameRoute from "../pages/game/route";
import continueRoute from "../pages/continue/route";
import dataRoute from "../pages/data/route";
import miniRoute from "../pages/mini/route";
import editorRoute from "../pages/editor/route";

const isProd = process.env.NODE_ENV === "production"

export const routes = createRouter({
  history: isProd ? createWebHashHistory() : createWebHistory(),
  routes: [
    { path: "/", redirect: homeRoute.path },
    homeRoute,
    gameRoute,
    continueRoute,
    dataRoute,
    miniRoute,
    editorRoute
  ],
});




